import request from "@/utils/request";
// 常见问题查询
export function getfaqlist(query) {
  return request({
    url: "/school/manager/faq/list" ,
    method: "get",
    params: query,
  });
}
// 修改常见问题
export function updatefaq(data) {
  return request({
    url: '/school/manager/faq',
    method: 'put',
    data: data
  })
}

// 新增常见问题
export function addfaq(data) {
  return request({
    url: '/school/manager/faq',
    method: 'post',
    data: data
  })
}
// 常见问题排序
export function sortfaq(data) {
  return request({
    url: '/school/manager/faq/sort',
    method: 'put',
    data: data
  })
}
// 常见问题详情
export function getfaqDetail(faqId) {
  return request({
    url: `/school/manager/faq/${faqId}`,
    method: "get",
  });
}

// 问题类型列表
export function getfaqTypelist() {
  return request({
    url: "/school/manager/faq/type/list" ,
    method: "get",
  });
}
// 新增常见问题类型
export function addfaqType(data) {
  return request({
    url: '/school/manager/faq/type',
    method: 'post',
    data: data
  })
}
// 修改常见类型
export function updatefaqType(data) {
  return request({
    url: '/school/manager/faq/type',
    method: 'put',
    data: data
  })
}
// 删除常见类型
export function deletefaqType(faqIds) {
  return request({
    url: `/school/manager/faq/type/${faqIds}`,
    method: 'delete',
  })
}
// 类型排序
export function sortfaqType(data) {
  return request({
    url: '/school/manager/faq/type/sort',
    method: 'put',
    data: data
  })
}
